# coding: utf-8
import os


def delete_file(path):
    if os.path.exists(path):
        os.remove(path)


if __name__ == '__main__':
    # delete_file('data/configure.json')
    for f in os.listdir('data/'):
        if f.startswith('key'):
            delete_file('data/' + f)
    delete_file('data/log.json')
    delete_file('data/commit_index')
    delete_file('data/experiment.txt')
